<?php echo $this->CMS->css("../scripts/jqueryFileTree/jqueryFileTree.css"); ?>
<?php echo $this->css('css/media.css'); ?>
<?php
	include(CMS_PATH . 'utils/pui_content_pane_renderer.php');
	
	$categoryData = array();
	
	for ($i = 0; $i < count($categories); $i++) {
		array_push($categoryData, array(
			"id" => $categories[$i]->getId(),
			"name" => $categories[$i]->getData('Name'),
			"description" => $categories[$i]->getData('Description')
		));
	}
	
	$renderer = new PUIContentPaneRenderer("Media");
	$renderer->setItemTitle("Media");
	$renderer->setCategoryArray($categoryData);
	$renderer->render();
?>

<input type="hidden" id="ajax_url" value="<?php echo $this->url('media.php'); ?>" />
<?php echo $this->CMS->script('jqueryFileTree/jqueryFileTree.js'); ?>
<?php echo $this->CMS->script('imgupload/picup.js'); ?>
<?php echo $this->script('js/media.js'); ?>